package com.heima.Controller;

import com.heima.Server.UserServer;
import com.heima.model.Login.LoginDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("app/user/api/v1/login")
public class LoginController {

    @Autowired
    UserServer userServer;

    @PostMapping("/login_auth")
    public ResponseResult Login(@RequestBody LoginDto loginDto)
    {
        return userServer.Login(loginDto);
    }
}
